
private void SidSetup( ControlP5 pCP5 )
{
  ControlWindow vSetupWindow;
  Radio         vDev;
  Textlabel     vLabel;
  String[]      vPorts;

  vSetupWindow = pCP5.addControlWindow("Setup",100,200,400,400);
  vSetupWindow.hideCoordinates();

  vDev = pCP5.addRadio("SidDevice", 40, 40);  
  vDev.setWindow( vSetupWindow );
  

  vDev.addItem("Dummy", -1);

  if(Serial.list().length > 0)
  {
    vPorts = Serial.list();

    for( int i = 0; i < vPorts.length; i++ )
    {
      vDev.addItem(vPorts[i], i);
    }
  }
}

private void SidDevice(int pId)
{
 // Debug.log("radio: " + pId);
  vSid = null;

  if( pId == -1 )
  {
    vSid = new DummySid();
  }
  else
  {
    vSid = new ASid( this, pId );
  }
  vSid.init();
}  


